home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1996 September
/
JCSM Shareware Collection (JCS Distribution) (September 1996).ISO
/
uother__
/
guardian.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-10-20
|
5KB
|
112 lines
Echo off
CLS
if "%1" == "" goto Noparms
if "%2" == "" goto NoDir
GOTO Proceed
:NoDir
Echo
Echo W A R N I N G
Echo You did not specify a directory
Echo
Echo If you proceed, The Guardian will be installed in the root directory
Echo of drive %1. If you made a mistake and want to start over, then
Echo press Ctl-Brk now; otherwise
Echo
Pause
Cls
:Proceed
Echo ══════════════════════════════════════════════════════════════════════
Echo
Echo T H E G U A R D I A N
Echo Hard Disk Installation Procedure
Echo
Echo You have asked that The Guardian be installed on a drive and
Echo directory specified by you. They are:
Echo
Echo DRIVE DIRECTORY
Echo
Echo %1 %2
Echo
Echo If this is not correct, press Ctl-Brk now. Then re-enter
Echo the procedure with the correct drive letter and directory
Echo according to the following format:
Echo
Echo INSTALL x: name
Echo
Echo where "x" is the drive letter and "name" is the name of
Echo the directory you wish to use. The current (default)
Echo drive should be A:.
Echo
Echo ══════════════════════════════════════════════════════════════════════
pause
if "%2" == "" goto BypassMD
: Create the installation directory, change to the installation drive and
: make the new directory current.
MD %1\%2
:BypassMD
%1
CD \%2
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 %1 %2 >> inst0.bat
GOTO Cont1
:Noparms
Echo ╔════════════════════════════════════════════════════════════════════╗
Echo ║ ║
Echo ║ T H E G U A R D I A N ║
Echo ║ Hard Disk Installation Procedure ║
Echo ║ ║
Echo ║ This procedure will install The Guardian on your hard disk ║
Echo ║ and set up the control files to simplify its operation. ║
Echo ║ ║
Echo ║ It will create a sub-directory called GUARDIAN where the ║
Echo ║ programs and data files will be stored. It assumes that ║
Echo ║ your hard disk is drive C:. If this is not correct, or ║
Echo ║ if you want to use a different directory name, press ║
Echo ║ Ctl-Brk now. Then re-enter the procedure with the correct ║
Echo ║ drive letter and directory name according to the following ║
Echo ║ format: ║
Echo ║ INSTALL x: name ║
Echo ║ ║
Echo ║ where "x" is the drive letter and "name" is the name of ║
Echo ║ the directory you wish to use. The current (default) ║
Echo ║ drive should be A:. ║
Echo ║ ║
Echo ╚════════════════════════════════════════════════════════════════════╝
Echo
pause
MD C:\GUARDIAN
C:
CD \GUARDIAN
Echo Echo off > inst0.bat
Echo Cls >> inst0.bat
Echo HDINST2 C: GUARDIAN >> inst0.bat
:Cont1
CLS
Echo Copying files - one moment please .....
: Copy all the files except Guardian.Exe
Copy A:*.BAT > nul
Copy A:*.COM > nul
Copy A:*.TXT > nul
IF EXIST GUARDIAN.EXE del GUARDIAN.EXE
:IF EXIST USERDOC.EXE del USERDOC.EXE
Echo
Echo Extracting files/programs - one moment please .....
Echo
: If a master already exists, rename it
IF EXIST GUARDIAN.MRE Ren GUARDIAN.MRE GUARDIAN.BAK
: Extract programs and documentation from the compressed files to the
: installation directory including a shareware version of master file
A:GUARDIAN
: A:USERDOC Removed 10/93
: If there is a registered master file, copy it on top of shareware version.
IF EXIST A:GUARDIAN.MRE Copy A:GUARDIAN.MRE
: Following lines removed 10/93
:IF NOT EXIST GUARDIAN.BAK Goto SkipRename
:Del GUARDIAN.MRE
:Ren GUARDIAN.BAK *.MRE
:SkipRename
: We just built the batch file INST0.BAT that simply invokes HDINST2.BAT but
: it passes the correct installation drive and directory to HDINST2.BAT
INST0